<?php


abstract class BaseBeat extends BaseObject  implements Persistent {


	
	protected static $peer;


	
	protected $id;


	
	protected $beat_name;


	
	protected $karaoke_file_path;


	
	protected $lyric_file_path;


	
	protected $artist;


	
	protected $composer;


	
	protected $album;


	
	protected $track_no;


	
	protected $genre;


	
	protected $genre_id = 0;


	
	protected $lyrics;


	
	protected $bitrate;


	
	protected $duration;


	
	protected $beat_format;


	
	protected $record = 0;


	
	protected $created_datetime;


	
	protected $type = 0;


	
	protected $ivr_file_path;


	
	protected $ivr_status = 0;


	
	protected $is_hot;


	
	protected $hide_status = 0;

	
	protected $alreadyInSave = false;

	
	protected $alreadyInValidation = false;

	
	public function getId()
	{

		return $this->id;
	}

	
	public function getBeatName()
	{

		return $this->beat_name;
	}

	
	public function getKaraokeFilePath()
	{

		return $this->karaoke_file_path;
	}

	
	public function getLyricFilePath()
	{

		return $this->lyric_file_path;
	}

	
	public function getArtist()
	{

		return $this->artist;
	}

	
	public function getComposer()
	{

		return $this->composer;
	}

	
	public function getAlbum()
	{

		return $this->album;
	}

	
	public function getTrackNo()
	{

		return $this->track_no;
	}

	
	public function getGenre()
	{

		return $this->genre;
	}

	
	public function getGenreId()
	{

		return $this->genre_id;
	}

	
	public function getLyrics()
	{

		return $this->lyrics;
	}

	
	public function getBitrate()
	{

		return $this->bitrate;
	}

	
	public function getDuration()
	{

		return $this->duration;
	}

	
	public function getBeatFormat()
	{

		return $this->beat_format;
	}

	
	public function getRecord()
	{

		return $this->record;
	}

	
	public function getCreatedDatetime($format = 'Y-m-d H:i:s')
	{

		if ($this->created_datetime === null || $this->created_datetime === '') {
			return null;
		} elseif (!is_int($this->created_datetime)) {
						$ts = strtotime($this->created_datetime);
			if ($ts === -1 || $ts === false) { 				throw new PropelException("Unable to parse value of [created_datetime] as date/time value: " . var_export($this->created_datetime, true));
			}
		} else {
			$ts = $this->created_datetime;
		}
		if ($format === null) {
			return $ts;
		} elseif (strpos($format, '%') !== false) {
			return strftime($format, $ts);
		} else {
			return date($format, $ts);
		}
	}

	
	public function getType()
	{

		return $this->type;
	}

	
	public function getIvrFilePath()
	{

		return $this->ivr_file_path;
	}

	
	public function getIvrStatus()
	{

		return $this->ivr_status;
	}

	
	public function getIsHot($format = 'Y-m-d H:i:s')
	{

		if ($this->is_hot === null || $this->is_hot === '') {
			return null;
		} elseif (!is_int($this->is_hot)) {
						$ts = strtotime($this->is_hot);
			if ($ts === -1 || $ts === false) { 				throw new PropelException("Unable to parse value of [is_hot] as date/time value: " . var_export($this->is_hot, true));
			}
		} else {
			$ts = $this->is_hot;
		}
		if ($format === null) {
			return $ts;
		} elseif (strpos($format, '%') !== false) {
			return strftime($format, $ts);
		} else {
			return date($format, $ts);
		}
	}

	
	public function getHideStatus()
	{

		return $this->hide_status;
	}

	
	public function setId($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->id !== $v) {
			$this->id = $v;
			$this->modifiedColumns[] = BeatPeer::ID;
		}

	} 
	
	public function setBeatName($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->beat_name !== $v) {
			$this->beat_name = $v;
			$this->modifiedColumns[] = BeatPeer::BEAT_NAME;
		}

	} 
	
	public function setKaraokeFilePath($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->karaoke_file_path !== $v) {
			$this->karaoke_file_path = $v;
			$this->modifiedColumns[] = BeatPeer::KARAOKE_FILE_PATH;
		}

	} 
	
	public function setLyricFilePath($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->lyric_file_path !== $v) {
			$this->lyric_file_path = $v;
			$this->modifiedColumns[] = BeatPeer::LYRIC_FILE_PATH;
		}

	} 
	
	public function setArtist($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->artist !== $v) {
			$this->artist = $v;
			$this->modifiedColumns[] = BeatPeer::ARTIST;
		}

	} 
	
	public function setComposer($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->composer !== $v) {
			$this->composer = $v;
			$this->modifiedColumns[] = BeatPeer::COMPOSER;
		}

	} 
	
	public function setAlbum($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->album !== $v) {
			$this->album = $v;
			$this->modifiedColumns[] = BeatPeer::ALBUM;
		}

	} 
	
	public function setTrackNo($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->track_no !== $v) {
			$this->track_no = $v;
			$this->modifiedColumns[] = BeatPeer::TRACK_NO;
		}

	} 
	
	public function setGenre($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->genre !== $v) {
			$this->genre = $v;
			$this->modifiedColumns[] = BeatPeer::GENRE;
		}

	} 
	
	public function setGenreId($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->genre_id !== $v || $v === 0) {
			$this->genre_id = $v;
			$this->modifiedColumns[] = BeatPeer::GENRE_ID;
		}

	} 
	
	public function setLyrics($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->lyrics !== $v) {
			$this->lyrics = $v;
			$this->modifiedColumns[] = BeatPeer::LYRICS;
		}

	} 
	
	public function setBitrate($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->bitrate !== $v) {
			$this->bitrate = $v;
			$this->modifiedColumns[] = BeatPeer::BITRATE;
		}

	} 
	
	public function setDuration($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->duration !== $v) {
			$this->duration = $v;
			$this->modifiedColumns[] = BeatPeer::DURATION;
		}

	} 
	
	public function setBeatFormat($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->beat_format !== $v) {
			$this->beat_format = $v;
			$this->modifiedColumns[] = BeatPeer::BEAT_FORMAT;
		}

	} 
	
	public function setRecord($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->record !== $v || $v === 0) {
			$this->record = $v;
			$this->modifiedColumns[] = BeatPeer::RECORD;
		}

	} 
	
	public function setCreatedDatetime($v)
	{

		if ($v !== null && !is_int($v)) {
			$ts = strtotime($v);
			if ($ts === -1 || $ts === false) { 				throw new PropelException("Unable to parse date/time value for [created_datetime] from input: " . var_export($v, true));
			}
		} else {
			$ts = $v;
		}
		if ($this->created_datetime !== $ts) {
			$this->created_datetime = $ts;
			$this->modifiedColumns[] = BeatPeer::CREATED_DATETIME;
		}

	} 
	
	public function setType($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->type !== $v || $v === 0) {
			$this->type = $v;
			$this->modifiedColumns[] = BeatPeer::TYPE;
		}

	} 
	
	public function setIvrFilePath($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->ivr_file_path !== $v) {
			$this->ivr_file_path = $v;
			$this->modifiedColumns[] = BeatPeer::IVR_FILE_PATH;
		}

	} 
	
	public function setIvrStatus($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->ivr_status !== $v || $v === 0) {
			$this->ivr_status = $v;
			$this->modifiedColumns[] = BeatPeer::IVR_STATUS;
		}

	} 
	
	public function setIsHot($v)
	{

		if ($v !== null && !is_int($v)) {
			$ts = strtotime($v);
			if ($ts === -1 || $ts === false) { 				throw new PropelException("Unable to parse date/time value for [is_hot] from input: " . var_export($v, true));
			}
		} else {
			$ts = $v;
		}
		if ($this->is_hot !== $ts) {
			$this->is_hot = $ts;
			$this->modifiedColumns[] = BeatPeer::IS_HOT;
		}

	} 
	
	public function setHideStatus($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->hide_status !== $v || $v === 0) {
			$this->hide_status = $v;
			$this->modifiedColumns[] = BeatPeer::HIDE_STATUS;
		}

	} 
	
	public function hydrate(ResultSet $rs, $startcol = 1)
	{
		try {

			$this->id = $rs->getInt($startcol + 0);

			$this->beat_name = $rs->getString($startcol + 1);

			$this->karaoke_file_path = $rs->getString($startcol + 2);

			$this->lyric_file_path = $rs->getString($startcol + 3);

			$this->artist = $rs->getString($startcol + 4);

			$this->composer = $rs->getString($startcol + 5);

			$this->album = $rs->getString($startcol + 6);

			$this->track_no = $rs->getInt($startcol + 7);

			$this->genre = $rs->getString($startcol + 8);

			$this->genre_id = $rs->getInt($startcol + 9);

			$this->lyrics = $rs->getString($startcol + 10);

			$this->bitrate = $rs->getInt($startcol + 11);

			$this->duration = $rs->getInt($startcol + 12);

			$this->beat_format = $rs->getString($startcol + 13);

			$this->record = $rs->getInt($startcol + 14);

			$this->created_datetime = $rs->getTimestamp($startcol + 15, null);

			$this->type = $rs->getInt($startcol + 16);

			$this->ivr_file_path = $rs->getString($startcol + 17);

			$this->ivr_status = $rs->getInt($startcol + 18);

			$this->is_hot = $rs->getTimestamp($startcol + 19, null);

			$this->hide_status = $rs->getInt($startcol + 20);

			$this->resetModified();

			$this->setNew(false);

						return $startcol + 21; 
		} catch (Exception $e) {
			throw new PropelException("Error populating Beat object", $e);
		}
	}

	
	public function delete($con = null)
	{
		if ($this->isDeleted()) {
			throw new PropelException("This object has already been deleted.");
		}

		if ($con === null) {
			$con = Propel::getConnection(BeatPeer::DATABASE_NAME);
		}

		try {
			$con->begin();
			BeatPeer::doDelete($this, $con);
			$this->setDeleted(true);
			$con->commit();
		} catch (PropelException $e) {
			$con->rollback();
			throw $e;
		}
	}

	
	public function save($con = null)
	{
		if ($this->isDeleted()) {
			throw new PropelException("You cannot save an object that has been deleted.");
		}

		if ($con === null) {
			$con = Propel::getConnection(BeatPeer::DATABASE_NAME);
		}

		try {
			$con->begin();
			$affectedRows = $this->doSave($con);
			$con->commit();
			return $affectedRows;
		} catch (PropelException $e) {
			$con->rollback();
			throw $e;
		}
	}

	
	protected function doSave($con)
	{
		$affectedRows = 0; 		if (!$this->alreadyInSave) {
			$this->alreadyInSave = true;


						if ($this->isModified()) {
				if ($this->isNew()) {
					$pk = BeatPeer::doInsert($this, $con);
					$affectedRows += 1; 										 										 
					$this->setId($pk);  
					$this->setNew(false);
				} else {
					$affectedRows += BeatPeer::doUpdate($this, $con);
				}
				$this->resetModified(); 			}

			$this->alreadyInSave = false;
		}
		return $affectedRows;
	} 
	
	protected $validationFailures = array();

	
	public function getValidationFailures()
	{
		return $this->validationFailures;
	}

	
	public function validate($columns = null)
	{
		$res = $this->doValidate($columns);
		if ($res === true) {
			$this->validationFailures = array();
			return true;
		} else {
			$this->validationFailures = $res;
			return false;
		}
	}

	
	protected function doValidate($columns = null)
	{
		if (!$this->alreadyInValidation) {
			$this->alreadyInValidation = true;
			$retval = null;

			$failureMap = array();


			if (($retval = BeatPeer::doValidate($this, $columns)) !== true) {
				$failureMap = array_merge($failureMap, $retval);
			}



			$this->alreadyInValidation = false;
		}

		return (!empty($failureMap) ? $failureMap : true);
	}

	
	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
	{
		$pos = BeatPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
		return $this->getByPosition($pos);
	}

	
	public function getByPosition($pos)
	{
		switch($pos) {
			case 0:
				return $this->getId();
				break;
			case 1:
				return $this->getBeatName();
				break;
			case 2:
				return $this->getKaraokeFilePath();
				break;
			case 3:
				return $this->getLyricFilePath();
				break;
			case 4:
				return $this->getArtist();
				break;
			case 5:
				return $this->getComposer();
				break;
			case 6:
				return $this->getAlbum();
				break;
			case 7:
				return $this->getTrackNo();
				break;
			case 8:
				return $this->getGenre();
				break;
			case 9:
				return $this->getGenreId();
				break;
			case 10:
				return $this->getLyrics();
				break;
			case 11:
				return $this->getBitrate();
				break;
			case 12:
				return $this->getDuration();
				break;
			case 13:
				return $this->getBeatFormat();
				break;
			case 14:
				return $this->getRecord();
				break;
			case 15:
				return $this->getCreatedDatetime();
				break;
			case 16:
				return $this->getType();
				break;
			case 17:
				return $this->getIvrFilePath();
				break;
			case 18:
				return $this->getIvrStatus();
				break;
			case 19:
				return $this->getIsHot();
				break;
			case 20:
				return $this->getHideStatus();
				break;
			default:
				return null;
				break;
		} 	}

	
	public function toArray($keyType = BasePeer::TYPE_PHPNAME)
	{
		$keys = BeatPeer::getFieldNames($keyType);
		$result = array(
			$keys[0] => $this->getId(),
			$keys[1] => $this->getBeatName(),
			$keys[2] => $this->getKaraokeFilePath(),
			$keys[3] => $this->getLyricFilePath(),
			$keys[4] => $this->getArtist(),
			$keys[5] => $this->getComposer(),
			$keys[6] => $this->getAlbum(),
			$keys[7] => $this->getTrackNo(),
			$keys[8] => $this->getGenre(),
			$keys[9] => $this->getGenreId(),
			$keys[10] => $this->getLyrics(),
			$keys[11] => $this->getBitrate(),
			$keys[12] => $this->getDuration(),
			$keys[13] => $this->getBeatFormat(),
			$keys[14] => $this->getRecord(),
			$keys[15] => $this->getCreatedDatetime(),
			$keys[16] => $this->getType(),
			$keys[17] => $this->getIvrFilePath(),
			$keys[18] => $this->getIvrStatus(),
			$keys[19] => $this->getIsHot(),
			$keys[20] => $this->getHideStatus(),
		);
		return $result;
	}

	
	public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
	{
		$pos = BeatPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
		return $this->setByPosition($pos, $value);
	}

	
	public function setByPosition($pos, $value)
	{
		switch($pos) {
			case 0:
				$this->setId($value);
				break;
			case 1:
				$this->setBeatName($value);
				break;
			case 2:
				$this->setKaraokeFilePath($value);
				break;
			case 3:
				$this->setLyricFilePath($value);
				break;
			case 4:
				$this->setArtist($value);
				break;
			case 5:
				$this->setComposer($value);
				break;
			case 6:
				$this->setAlbum($value);
				break;
			case 7:
				$this->setTrackNo($value);
				break;
			case 8:
				$this->setGenre($value);
				break;
			case 9:
				$this->setGenreId($value);
				break;
			case 10:
				$this->setLyrics($value);
				break;
			case 11:
				$this->setBitrate($value);
				break;
			case 12:
				$this->setDuration($value);
				break;
			case 13:
				$this->setBeatFormat($value);
				break;
			case 14:
				$this->setRecord($value);
				break;
			case 15:
				$this->setCreatedDatetime($value);
				break;
			case 16:
				$this->setType($value);
				break;
			case 17:
				$this->setIvrFilePath($value);
				break;
			case 18:
				$this->setIvrStatus($value);
				break;
			case 19:
				$this->setIsHot($value);
				break;
			case 20:
				$this->setHideStatus($value);
				break;
		} 	}

	
	public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
	{
		$keys = BeatPeer::getFieldNames($keyType);

		if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);
		if (array_key_exists($keys[1], $arr)) $this->setBeatName($arr[$keys[1]]);
		if (array_key_exists($keys[2], $arr)) $this->setKaraokeFilePath($arr[$keys[2]]);
		if (array_key_exists($keys[3], $arr)) $this->setLyricFilePath($arr[$keys[3]]);
		if (array_key_exists($keys[4], $arr)) $this->setArtist($arr[$keys[4]]);
		if (array_key_exists($keys[5], $arr)) $this->setComposer($arr[$keys[5]]);
		if (array_key_exists($keys[6], $arr)) $this->setAlbum($arr[$keys[6]]);
		if (array_key_exists($keys[7], $arr)) $this->setTrackNo($arr[$keys[7]]);
		if (array_key_exists($keys[8], $arr)) $this->setGenre($arr[$keys[8]]);
		if (array_key_exists($keys[9], $arr)) $this->setGenreId($arr[$keys[9]]);
		if (array_key_exists($keys[10], $arr)) $this->setLyrics($arr[$keys[10]]);
		if (array_key_exists($keys[11], $arr)) $this->setBitrate($arr[$keys[11]]);
		if (array_key_exists($keys[12], $arr)) $this->setDuration($arr[$keys[12]]);
		if (array_key_exists($keys[13], $arr)) $this->setBeatFormat($arr[$keys[13]]);
		if (array_key_exists($keys[14], $arr)) $this->setRecord($arr[$keys[14]]);
		if (array_key_exists($keys[15], $arr)) $this->setCreatedDatetime($arr[$keys[15]]);
		if (array_key_exists($keys[16], $arr)) $this->setType($arr[$keys[16]]);
		if (array_key_exists($keys[17], $arr)) $this->setIvrFilePath($arr[$keys[17]]);
		if (array_key_exists($keys[18], $arr)) $this->setIvrStatus($arr[$keys[18]]);
		if (array_key_exists($keys[19], $arr)) $this->setIsHot($arr[$keys[19]]);
		if (array_key_exists($keys[20], $arr)) $this->setHideStatus($arr[$keys[20]]);
	}

	
	public function buildCriteria()
	{
		$criteria = new Criteria(BeatPeer::DATABASE_NAME);

		if ($this->isColumnModified(BeatPeer::ID)) $criteria->add(BeatPeer::ID, $this->id);
		if ($this->isColumnModified(BeatPeer::BEAT_NAME)) $criteria->add(BeatPeer::BEAT_NAME, $this->beat_name);
		if ($this->isColumnModified(BeatPeer::KARAOKE_FILE_PATH)) $criteria->add(BeatPeer::KARAOKE_FILE_PATH, $this->karaoke_file_path);
		if ($this->isColumnModified(BeatPeer::LYRIC_FILE_PATH)) $criteria->add(BeatPeer::LYRIC_FILE_PATH, $this->lyric_file_path);
		if ($this->isColumnModified(BeatPeer::ARTIST)) $criteria->add(BeatPeer::ARTIST, $this->artist);
		if ($this->isColumnModified(BeatPeer::COMPOSER)) $criteria->add(BeatPeer::COMPOSER, $this->composer);
		if ($this->isColumnModified(BeatPeer::ALBUM)) $criteria->add(BeatPeer::ALBUM, $this->album);
		if ($this->isColumnModified(BeatPeer::TRACK_NO)) $criteria->add(BeatPeer::TRACK_NO, $this->track_no);
		if ($this->isColumnModified(BeatPeer::GENRE)) $criteria->add(BeatPeer::GENRE, $this->genre);
		if ($this->isColumnModified(BeatPeer::GENRE_ID)) $criteria->add(BeatPeer::GENRE_ID, $this->genre_id);
		if ($this->isColumnModified(BeatPeer::LYRICS)) $criteria->add(BeatPeer::LYRICS, $this->lyrics);
		if ($this->isColumnModified(BeatPeer::BITRATE)) $criteria->add(BeatPeer::BITRATE, $this->bitrate);
		if ($this->isColumnModified(BeatPeer::DURATION)) $criteria->add(BeatPeer::DURATION, $this->duration);
		if ($this->isColumnModified(BeatPeer::BEAT_FORMAT)) $criteria->add(BeatPeer::BEAT_FORMAT, $this->beat_format);
		if ($this->isColumnModified(BeatPeer::RECORD)) $criteria->add(BeatPeer::RECORD, $this->record);
		if ($this->isColumnModified(BeatPeer::CREATED_DATETIME)) $criteria->add(BeatPeer::CREATED_DATETIME, $this->created_datetime);
		if ($this->isColumnModified(BeatPeer::TYPE)) $criteria->add(BeatPeer::TYPE, $this->type);
		if ($this->isColumnModified(BeatPeer::IVR_FILE_PATH)) $criteria->add(BeatPeer::IVR_FILE_PATH, $this->ivr_file_path);
		if ($this->isColumnModified(BeatPeer::IVR_STATUS)) $criteria->add(BeatPeer::IVR_STATUS, $this->ivr_status);
		if ($this->isColumnModified(BeatPeer::IS_HOT)) $criteria->add(BeatPeer::IS_HOT, $this->is_hot);
		if ($this->isColumnModified(BeatPeer::HIDE_STATUS)) $criteria->add(BeatPeer::HIDE_STATUS, $this->hide_status);

		return $criteria;
	}

	
	public function buildPkeyCriteria()
	{
		$criteria = new Criteria(BeatPeer::DATABASE_NAME);

		$criteria->add(BeatPeer::ID, $this->id);

		return $criteria;
	}

	
	public function getPrimaryKey()
	{
		return $this->getId();
	}

	
	public function setPrimaryKey($key)
	{
		$this->setId($key);
	}

	
	public function copyInto($copyObj, $deepCopy = false)
	{

		$copyObj->setBeatName($this->beat_name);

		$copyObj->setKaraokeFilePath($this->karaoke_file_path);

		$copyObj->setLyricFilePath($this->lyric_file_path);

		$copyObj->setArtist($this->artist);

		$copyObj->setComposer($this->composer);

		$copyObj->setAlbum($this->album);

		$copyObj->setTrackNo($this->track_no);

		$copyObj->setGenre($this->genre);

		$copyObj->setGenreId($this->genre_id);

		$copyObj->setLyrics($this->lyrics);

		$copyObj->setBitrate($this->bitrate);

		$copyObj->setDuration($this->duration);

		$copyObj->setBeatFormat($this->beat_format);

		$copyObj->setRecord($this->record);

		$copyObj->setCreatedDatetime($this->created_datetime);

		$copyObj->setType($this->type);

		$copyObj->setIvrFilePath($this->ivr_file_path);

		$copyObj->setIvrStatus($this->ivr_status);

		$copyObj->setIsHot($this->is_hot);

		$copyObj->setHideStatus($this->hide_status);


		$copyObj->setNew(true);

		$copyObj->setId(NULL); 
	}

	
	public function copy($deepCopy = false)
	{
				$clazz = get_class($this);
		$copyObj = new $clazz();
		$this->copyInto($copyObj, $deepCopy);
		return $copyObj;
	}

	
	public function getPeer()
	{
		if (self::$peer === null) {
			self::$peer = new BeatPeer();
		}
		return self::$peer;
	}

} 